package org.fing.edu.uy.esbadp.core.entity;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.fing.edu.uy.esbadp.core.constants.ConfigConstants;

@XmlRootElement(name = ConfigConstants.ADAPTATION_REQUIREMENTS_ELEMENT)
@XmlAccessorType(XmlAccessType.FIELD)
public class DMAdpAdaptationRequirement implements Serializable {

	private static final long serialVersionUID = 1L;

	String name;	
	String description;
	@XmlElement(name="event-triggered")
	String event_triggered;
	
	public DMAdpAdaptationRequirement(){}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getEvent_triggered() {
		return event_triggered;
	}

	public void setEvent_triggered(String event_triggered) {
		this.event_triggered = event_triggered;
	}
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("  name:");
		sb.append(name);
		sb.append("\n");		
		sb.append("  description:");
		sb.append(description);
		sb.append("\n");
		sb.append("  event-triggered:");
		sb.append(event_triggered);
		sb.append("\n");
		return sb.toString();	
	}
	
}
